package com.liy.framework.common.web.controller;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping({"${server.error.path:${error.path:/error}}"})
public class Error404Controller implements ErrorController {

    public String getErrorPath() {
        return null;
    }

    @RequestMapping
    public String error() {
        return "404";
    }
}
